<template>
  <div class="home">
    <div class="home-center">
      <div>
        <router-view></router-view>
      </div>
    </div>

    <div class="home-bottom">
      <router-link to="/home/article">面经</router-link>
      <router-link to="/home/collect">收藏</router-link>
      <router-link to="/home/like">喜欢</router-link>
      <router-link to="/home/user">我的</router-link>
    </div>
  </div>
</template>

<script>
export default {
  name: "HmHome",
};
</script>

<style scoped lang="less">
.home {
  display: flex;
  //纵向flex布局
  flex-direction: column;

  height: 100%;
  .home-top {
    width: 100%;

    background-color: #fff;
  }
  //剩余空间铺满
  .home-center {
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    flex: 1;
    padding-bottom: 30px;
  }

  .home-bottom {
    width: 100%;
    height: 30px;
    display: flex;
    background-color: #fff;
    justify-content: space-around;
    /* 定位到页面底部 */
    position: fixed;
    bottom: 0;
  }
}
</style>
